{{extend "config_kfzx_layout.html"}}

{{block content_main}}
{{use "jquery", css_only=True}}
<div class="content">
    <div class="box">
        <table border=0 cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
                <td>
                    &nbsp;
                </td>   
                <td width="35%" valign="top">
                    <h2>查看开发中心</h2>
                    <div class="box-body" align="center">
                        {{embed view}}
                        <div style="padding:5px;">
                        {{if request.user.is_superuser:}}
                        <a class="btn btn-green" href="/config/kfzx/edit/{{=object.id}}">编辑</a>
                        {{pass}}
                        {{if request.user.is_superuser:}}
                        <a class="btn btn-green" href="/config/kfzx/delete/{{=object.id}}" onclick="return confirm('确定要删除当前记录吗？');">删除</a>
                        {{pass}}
                        </div>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td> 
                <td width="35%" valign="top">
                    <h2>中心自主研发率</h2>
                    <div class="box-body" align="center">
                        <div id="selfdevs">
                            {{use "jquery"}}
                            <script type="text/javascript">
                            $(function(){
                                <!--$('#selfdevs').load("/selfdev_zxs/{{=object.id}}/view");-->
                                $.ajax({
                                    type: "POST",
                                    url: "/selfdev_zxs/{{=object.id}}/view",
                                    success: function(data){
                                        $('#selfdevs').html(data);
                                    }
                                });
                            });
                            </script>  
                        </div>    
                        <div style="padding:5px;">
                            {{if request.user.is_superuser:}}
                            <a class="btn btn-green" href="/selfdev_zxs/{{=object.id}}/edit">编辑</a>
                            {{pass}}
                        </div>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>    
            </tr>
        </table>
    </div>
</div>

{{end}}
